package cn.fintecher.pangolin.common.model;

import cn.fintecher.pangolin.common.enums.BaseSelect;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

/**
 * @Auther: xiaqun
 * @Description: 用户返回对象
 * @Date: 17:02 2019/8/13
 */

@Data
public class UserModel implements Serializable {

    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "用户姓名")
    private String realName;

    @ApiModelProperty(value = "是否管理员")
    private BaseSelect isManage;

    @ApiModelProperty(value = "角色Ids")
    private Set<String> roleIds;

    @ApiModelProperty(value = "菜单资源")
    private Set<ResourceModel> menu;

    @ApiModelProperty(value = "控件资源")
    private Set<Integer> resource;

    @ApiModelProperty(value = "是否开启合规检查")
    private BaseSelect isCheck;

    @ApiModelProperty(value = "合规检查配置的委托方Id")
    private Set<String> principalIds;

    @ApiModelProperty(value = "用户头像url")
    private String url;

    @ApiModelProperty(value = "通道号")
    private String channelNo;
}
